package com.wqi.chapter7;

public class BigEgg extends Egg{

	protected class Yolk{
		public Yolk(){
			System.out.println("BigEgg.yolk()");
		}
	}
	public BigEgg(){
		System.out.println("New Bigegg()");
		//super.y = new Yolk();
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new BigEgg();

	}
}

class Egg{
	protected class Yolk{
		public Yolk(){
			System.out.println("Egg.yolk()");
		}
	}
	protected Yolk y;
	public Egg(){
		System.out.println("New egg()");
		y = new Yolk();
	}
}

